home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / metamail / mailcap < prev    next >
Encoding:
Text File  |  1993-05-28  |  6.2 KB  |  110 lines

  1. # Copyright (c) 1991 Bell Communications Research, Inc. (Bellcore)
  2. # Permission to use, copy, modify, and distribute this material 
  3. # for any purpose and without fee is hereby granted, provided 
  4. # that the above copyright notice and this permission notice 
  5. # appear in all copies, and that the name of Bellcore not be 
  6. # used in advertising or publicity pertaining to this 
  7. # material without the specific, prior written permission 
  8. # of an authorized representative of Bellcore.  BELLCORE 
  9. # MAKES NO REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY 
  10. # OF THIS MATERIAL FOR ANY PURPOSE.  IT IS PROVIDED "AS IS", 
  11. # WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
  12. #
  13. # Prototype Mailcap file
  14. # Note that support for text & multipart are "built in" to metamail,
  15. # as are rudimentary support for message, and application.
  16. # However, any of these may be overridden in mailcap.
  17. #
  18. # Note that users may override or extend this with a .mailcap
  19. # file in their own directory.  However, there is NO NEED
  20. # for them to copy entries from this file, as metamail will
  21. # pick up entries from both the system and personal mailcap files.
  22. #
  23. # Note that the effect of the following is to send ALL audio subtypes to the 
  24. # showaudio program, but to compose audio (e.g. in the mailto program) 
  25. # using "audio/basic" as the type.
  26. audio/*; showaudio %s
  27. audio/basic; showaudio %s; compose=audiocompose %s; edit=audiocompose %s; description="An audio fragment"
  28.  
  29. # The following line is for sites where xv understands jpeg but xloadimage is preferred.
  30. image/jpeg; showpicture -viewer xv %s
  31. # The following sends all other image subtypes to showpicture.
  32. image/*; showpicture %s
  33. # The following all appear AFTER the corresponding READING entries, and 
  34. # are for use in messages composition, e.g. in the "mailto" program
  35. # In the following lines, the exit 0 junk is necessary because xwd 
  36. # doesn't always exit with a valid exit status!
  37. # For sites with current (X11R5) pbm utilities
  38. image/gif; showpicture %s; compose="xwd -frame | xwdtopnm | ppmtogif > %s\; exit 0"; description="An X11 window image dump in GIF format"
  39. # The following line should be used instead of the previous by sites
  40. # with old (X11R4) pbm utilities
  41. #image/gif; showpicture %s; compose="xwd -frame | xwdtoppm | ppmtogif > %s\; exit 0"; description="An X11 window image dump in GIF format"
  42. # For receiving X11 window image dumps from older versions of Andrew messages
  43. image/x-xwd; showpicture %s; description="An X11 window image dump in X-XWD format"
  44.  
  45. message/partial; showpartial %s %{id} %{number} %{total}
  46. message/external-body; showexternal %s %{access-type} %{name} %{site} %{directory} %{mode} %{server}; \
  47.     needsterminal; composetyped = extcompose %s; \
  48.     description="A reference to data stored in an external location"
  49.  
  50. # If you have an interactive Postscript interpreter, you should think carefully 
  51. # before replacing lpr with it in the following line, because PostScript
  52. # can be an enormous security hole.  It is RELATIVELY harmless
  53. # when sent to the printer...
  54. application/postscript ; lpr %s ; description="A Postscript File";\
  55.     compose="getfilename Postscript %s"
  56.  
  57. # The following should be commented out if you do NOT have atomicmail
  58. # and should be uncommented if you DO have ATOMICMAIL
  59. #application/atomicmail; atomicmail %s; compose=surveyor.am -p %s; description="An interactive ATOMICMAIL survey"
  60. # The following should be used instead if you have atomicmail but not TK.
  61. #application/atomicmail; atomicmail %s ; needsterminal
  62. #application/atomicmail; atomicmail %s; compose=surveyor.am -p %s; description="An interactive ATOMICMAIL survey"; needsterminal
  63.  
  64. # The following give rudimentary capabilities to read old andrew format
  65. # even to non-Andrew sites, since "ezview" comes with metamail.
  66. x-be2;     ezview %s ; copiousoutput
  67. application/andrew-inset;     ezview %s ; copiousoutput; edit=ez -d %s; compose="ez -d %s"; description="An Andrew inset/document"
  68.  
  69. # The following gives rudimentary capability for receiving 
  70. # text mail in the ISO-8859-1 character set, which covers many European 
  71. # languages, and the ISO-8859-8 character set, which includes Hebrew
  72. # Note that the pipe to tr ensures that the "ISO" is case-insensitive.
  73. text/richtext; shownonascii iso-8859-8 -e richtext -p %s; test=test "`echo %{charset} | tr A-Z a-z`"  = iso-8859-8; copiousoutput
  74. text/richtext; shownonascii iso-8859-1 -e richtext -p %s; test=test "`echo %{charset} | tr A-Z a-z`"  = iso-8859-1; copiousoutput
  75. text/plain; shownonascii iso-8859-8 %s; test=test "`echo %{charset} | tr A-Z a-z`" = iso-8859-8; copiousoutput
  76. text/plain; shownonascii iso-8859-1 %s; test=test "`echo %{charset} | tr A-Z a-z`" = iso-8859-1; copiousoutput
  77.  
  78. # The following displays Japanese text at sites where the "kterm" program is installed:
  79. text/plain; kterm -geometry +0+0  -e more %s /dev/null; test=test "`echo %{charset} | tr A-Z a-z`" = iso-2022-jp
  80.  
  81.  
  82. text/richtext; richtext %s; copiousoutput
  83. # If you have Andrew at your site, you MIGHT prefer to replace the
  84. # above line with the following one, but probably won't because
  85. # ez takes so long to start up.
  86. # text/richtext; richtoatk < %s | ezview - ; copiousoutput
  87.  
  88. # The following is a VERY rough cut at showing mail from Sun's openwindows mailtool
  89. x-sun-attachment; sun-to-mime.csh %s
  90. audio-file; sun-audio-file.csh %s
  91. postscript-file; lpr %s
  92. default; cat %s; copiousoutput
  93.  
  94. # The following is used for distributing metamail patches
  95. # It should probably be used only by those administering metamail at a site.
  96. # You will need to replace "source-tree-root" with the real root of your 
  97. # actual metamail source tree.
  98. # You can also modify this line to get metamail patches from some trusted
  99. # server other than thumper, if there is one -- man patch-metamail" for help.
  100. application/x-metamail-patch; cat %s > /dev/null \; patch-metamail source-tree-root %{patchnumber}; needsterminal
  101.  
  102. # The following is for support of MacMIME, especially those
  103. # the Columbia AppleTalk package (CAP) installed.
  104. # For more info about MacMIME, send email to paf@nada.kth.se
  105. #
  106. # If you don't have CAP, and haven't changed recieveAppleSingle
  107. # or sendAppleSingle, you should comment out this line.
  108. application/applefile; recieveAppleSingle %s; compose="sendAppleSingle %s";description="An Apple Macintosh file in AppleSingle format"
  109.